package com.archetypus.projectschedule.web.involvements.bd;

import com.archetypus.projectschedule.common.dto.activities.Activity;
import com.archetypus.projectschedule.common.dto.involvements.Involvement;
import com.archetypus.projectschedule.common.dto.involvements.InvolvementListHandler;
import com.archetypus.projectschedule.common.dto.people.Person;
import com.archetypus.projectschedule.common.exceptions.ProjectSchedulerException;
import com.archetypus.projectschedule.core.involvements.sf.InvolvementSF;

public class InvolvementBD implements IInvolvementBD {

	public void createInvolvement(Involvement involvement)
			throws ProjectSchedulerException {
		InvolvementSF.getInstance().createInvolvement(involvement);

	}

	public void deleteInvolvement(Involvement involvement)
			throws ProjectSchedulerException {
		InvolvementSF.getInstance().deleteInvolvement(involvement);
	}

	public Involvement findInvolvement(Involvement involvement)
			throws ProjectSchedulerException {
		return InvolvementSF.getInstance().findInvolvement(involvement);
	}

	public InvolvementListHandler listInvolvements()
			throws ProjectSchedulerException {
		return InvolvementSF.getInstance().listInvolvements();
	}

	public void updateInvolvement(Involvement involvement)
			throws ProjectSchedulerException {
		InvolvementSF.getInstance().updateInvolvement(involvement);
	}

	public InvolvementListHandler listInvolvementsByActivity(Activity activity)
			throws ProjectSchedulerException {
		
		return InvolvementSF.getInstance().listInvolvementsByActivity(activity);
	}

	public InvolvementListHandler listInvolvementsByPerson(Person person)
			throws ProjectSchedulerException {
		// TODO Auto-generated method stub
		return InvolvementSF.getInstance().listInvolvementsByPerson(person);
	}

}
